//
// Created by 吴锐 on 2022/2/26.
//

#include "iostream"

using namespace std;

class BasePage {
public:
    void header(){
        cout << "首页。公开课，登陆，注册（公共头部）" << endl;
    }

    void footer(){
        cout << "帮助中心，交流合作，站内地图（公共底部）" << endl;
    }

    void left(){
        cout << "java, python, c++（公共分类列表）" << endl;
    }
};

class Java : public BasePage{
public:
    void content(){
        cout << "java视频" << endl;
    }
};

class Python : public BasePage{
public:
    void content(){
        cout << "python视频" << endl;
    }
};

class Cpp : public BasePage{
public:
    void content(){
        cout << "c++视频" << endl;
    }
};

void test01(){
    cout << "java下载视频页面如下:" << endl;
    Java ja;
    ja.header();
    ja.footer();
    ja.left();
    ja.content();
    cout << "----------------------" << endl;
    cout << "java下载视频页面如下:" << endl;
    Python python;
    python.header();
    python.footer();
    python.left();
    python.content();
    cout << "----------------------" << endl;
    cout << "java下载视频页面如下:" << endl;
    Cpp cpp;
    cpp.header();
    cpp.footer();
    cpp.left();
    cpp.content();
    cout << "----------------------" << endl;
}

int main(){
    test01();
    return 0;
}